import http from '@/utils/http'

//加入购物车
export const inserCart = ({ skuId, count }) => {
  return http({
    url: '/member/cart',
    method: 'post',
    data: {
      skuId,
      count,
    },
  })
}

//获取购物车
export const findCart = () => {
  return http({
    url: '/member/cart',
  })
}
//删除购物车
export const DeleteCart = (ids) => {
  return http({
    url: '/member/cart',
    method: 'delete',
    data: {
      ids,
    },
  })
}
